package com.monlyu.vo;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;

import com.monlyu.annotation.Comment;

/********************************************************************************
 * 
 * <b>功能描述☞</b>栏目对应的审核关系<br>
 * 
 * <b>开发公司☞</b>重庆唯尼科技有限公司<br>
 * <b>版权☞</b>本文件归重庆唯尼科技有限公司所有<br>
 * <b>项目名☞</b>NewsSys<br>
 * <b>文件路径☞</b>com.monlyu.vo.Aduitor2User.java<br>
 * <b>开发日期☞</b>2010-2-14 <br>
 * 
 * @author monlyu
 * @since JDK 5
 * @version 1.0.8
 * 
 ********************************************************************************/
@Entity(name = "t_Aduitor2User")
@Comment(common = "栏目审核人员信息表")
public class Aduitor2User extends BaseVo {

	@Id
	@Column(name = "a_id")
	@Comment(common = "编号")
	private Long id;

	@Column(name = "a_programe")
	@Comment(common = "栏目")
	private Long programe;

	@Column(name = "a_step")
	@Comment(common = "审核的第几步")
	private int step = 1;

	@ManyToOne
	@JoinColumn(name = "a_audit")
	@Comment(common = "审核人员")
	private User audit;

	@ManyToOne
	@JoinColumn(name = "a_super")
	@Comment(common = "上一步骤")
	private Aduitor2User supor;

	@Column(name = "a_opera")
	@Comment(common = "能做的操作,10101格式")
	private int opera;

	@Column(name = "a_enable")
	@Comment(common = "现在的状态")
	private boolean enable = true;

	public boolean isEnable() {
		return enable;
	}

	public void setEnable(boolean enable) {
		this.enable = enable;
	}

	public Long getId() {
		return id;
	}

	public void setId(Long id) {
		this.id = id;
	}

	public Long getPrograme() {
		return programe;
	}

	public void setPrograme(Long programe) {
		this.programe = programe;
	}

	public int getStep() {
		return step;
	}

	public void setStep(int step) {
		this.step = step;
	}

	public User getAudit() {
		return audit;
	}

	public void setAudit(User audit) {
		this.audit = audit;
	}

	public Aduitor2User getSupor() {
		return supor;
	}

	public void setSupor(Aduitor2User supor) {
		this.supor = supor;
	}

	public int getOpera() {
		return opera;
	}

	public void setOpera(int opera) {
		this.opera = opera;
	}

	public int next() {
		return getStep() + 1;
	}
}
